<style>
    .item-flex {
        display: flex;
        align-items: center;
    }

    .input-with-icon {
        position: relative;
    }

    .input-with-icon .layui-input {
        width: 350px;
        padding-right: 30px;
    }

    .input-with-icon .layui-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #999;
        font-size: 24px;
    }
</style>


<div class="febs-container" id="incentiveGoodsOrder-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="incentiveGoodsOrder-edit-form">
            <div class="layui-form-item febs-hide">
                <label class="layui-form-label febs-form-item-require">主键：</label>
                <div class="layui-input-block">
                    <input type="text" name="goodsOrderId" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label febs-form-item-require">兑现用户：</label>
                        <div class="layui-input-block item-flex">
                            <div class="input-with-icon">
                                <input type="text" name="scanInput" id="scanInput" placeholder="请输入用户名或用户编号"
                                       autocomplete="off" class="layui-input" lay-verify="required" onchange="inputChange(this.value)"> <i
                                    class="layui-icon layui-icon-scan layui-icon-template-1" id="scanIcon"></i>
                            </div>
                            <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" id="addUserBtn"
                                    style="margin-left: 10px">
                                <span class="layui-icon layui-icon-add-1"></span>选择人员
                            </button>
                        </div>
                    </div>
                </div>
                <div class="layui-row febs-hide" style="margin-top: 10px" id="info">
                    <div class="layui-col-md4">
                        <label class="layui-form-label ">用户工号：</label>
                        <div class="layui-input-block layui-input-block-html" id="userNo">

                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label ">部门名称：</label>
                        <div class="layui-input-block layui-input-block-html" id="deptName">

                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <label class="layui-form-label ">剩余积分：</label>
                        <div class="layui-input-block layui-input-block-html" id="score">

                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12" style="margin-top: 10px">
                        <label class="layui-form-label febs-form-item-require">兑现奖品：</label>
                        <div class="layui-input-block">
                            <div class="febs-table-full" style="padding-left: 0;padding-top: 0">
                                <table lay-filter="goodsTable" id="goodsTable'}"
                                       lay-data="{id: 'goodsTable'}"></table>
                            </div>
                            <button class="layui-btn layui-btn-normal layui-btn-sm layui-disabled" title="请先选择人员" disabled type="button" id="addGoodsBtn">
                                <span class="layui-icon layui-icon-add-1"></span>选择奖品
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="incentiveGoodsOrder-edit-form-submit"
                        id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="goods-option">
    <a lay-event="del"><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script data-th-inline="javascript">
    var incentiveGoodsOrderData = [[${incentiveGoodsOrder}]];
</script>
<script th:src="@{/febs/js/incentive/incentiveGoodsOrder/incentiveGoodsOrderEdit.js(v=1)}"></script>